<ul class="nav nav-pills ucenter-tab">
     <li id="menu_recharge"><a href="{:U('index/index')}">{:L("_EXCHANGE_ENTRANCE_")}</a></li>
    <li id="menu_withdrawList"><a href="{:U('index/record')}">{:L("_EXCHANGE_RECORD_")}</a></li>
</ul>
<script>
    $('#menu_'+"{$tab}").addClass('active')
</script>